﻿@model IEnumerable<AuditModel.Subject>

@{
    ViewBag.Title = AuditResources.UI.PageTitle;
}

<h2>管理 @AuditResources.Subject.ObjectName</h2>

<p>
    @Html.ActionLink(AuditResources.UI.Create + AuditResources.Subject.ObjectName, "Create", null, new { Class = "button" })
</p>
<table>
    <tr>
        <th>
             @AuditResources.Subject.Name
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.Name)
        </td>
        <td>
            @Html.ActionLink(AuditResources.UI.Edit, "Edit", new { id = item.Id }, new { Class = "button" }) |
            @Html.ActionLink(AuditResources.UI.Delete, "Delete", new { id = item.Id }, new { Class = "button" })
        </td>
    </tr>
}

</table>
